package org.example.handler;

import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.stereotype.Service;

import java.io.IOException;


@Service
public interface MessageHandler {

    /**
     * 接收信息的接口方法
     * @param message
     * @param channel
     */
    void handle(Message message, Channel channel) throws Exception;

    /**
     * 根据时间修改状态
     * @param message
     * @param channel
     * @throws IOException
     */
    void updateStatus(Message message, Channel channel) throws IOException;
}
